﻿@model DPW.Business.Model.CategoryModel

@{
    ViewBag.Title = "Create new category";
}

<h2>Create new category</h2>

@using (Html.BeginForm())
{@Html.ValidationSummary(true)

    <div class="row">
        <div class="span2">Name</div>
        <div class="span10"><input type="text" id="CategoryName" name="CategoryName"/></div>
    </div>
    <div class="row">
        <div class="span2">Description</div>
        <div class="span10"><input type="text" id="CategoryDescription" name="CategoryDescription"/></div>
    </div>
    <div class="row">
        <div class="span2 offset2"><input type="submit" class="btn btn-primary" value="Create" /></div>
        <div class="span2"><input type="reset" class="btn btn-primary" value="Reset" /></div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
